package music;

public class MusicBoxFactory {
	public static MusicBox getInstance(String className){
	     MusicBox mb=null;
	   if("PianoBox".equals(className)){
	    	mb=new PianoBox();
	    }
	   if("ViolinBox".equals(className)){
	    	mb=new ViolinBox();
	    }
	       return mb;
   }
}
